import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
// import './assets/css/_style.scss';
import "./assets/css/index.css";
import htmlToPdf from "@/jspdf/htmlToPdf.js";
import "@/jspdf/dialogDrag.js";
import axios from "axios";

// Vue.use(Element, );

Vue.use(htmlToPdf);
Vue.config.productionTip = false;
Vue.prototype.$axios = axios;
Vue.prototype.$message = ElementUI;
Vue.prototype.$confirm = ElementUI;
if (document.body.clientWidth < 1180) {
  Vue.use(ElementUI, { size: "mini", zIndex: 300 });
} else {
  Vue.use(ElementUI, { size: "medium", zIndex: 300 });
}

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
